Skip to content

Fix : Removed Overwritten refund Method Definition#290

Open
akashagg30 wants to merge 1 commit intorazorpay:masterfrom
akashagg30:fix_duplicate_refund_function
Open

Fix : Removed Overwritten refund Method Definition#290
akashagg30 wants to merge 1 commit intorazorpay:masterfrom
akashagg30:fix_duplicate_refund_function

Conversation

@akashagg30
Copy link

Fixes #289

This pull request removes the first refund method definition from the class, as it was being overwritten by the second definition. Since Python does not support function overloading, the first method was redundant and unused.

Changes Made:

  • Removed the refund method with the amount parameter.

Reason for Change:
The first definition was being overwritten, causing the logic for handling refunds with the amount parameter to be lost. Removing the redundant definition simplifies the code and eliminates potential confusion.

Impact:
This change ensures that the remaining refund method is the sole implementation, avoiding ambiguity in the codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate refund Function Definitions Overwriting Each Other

2 participants